home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_boulderblock.cog < prev    next >
Text File  |  1999-11-15  |  854b  |  43 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_boulderblock.cog
  4. #
  5. # Keeps you from seeing beyond the boulder when you're in the forest for framerate purposes.
  6. #
  7. # [GGJ]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14. message     startup
  15. message        crossed
  16.  
  17. surface        nearlight        
  18. sector      bouldersector                 nolink
  19.         
  20.  
  21. end
  22.  
  23. # ========================================================================================
  24. code
  25.  
  26. startup:
  27.  
  28.     SectorAdjoins(bouldersector, 0);
  29.     return;
  30. # ========================================================================================        
  31. crossed:
  32.     If (GetSenderRef() == nearlight)
  33.     {
  34.     Print("crossed");
  35.     SectorAdjoins(bouldersector, 1);
  36.     }
  37.     return;
  38.     
  39. end
  40.  
  41.  
  42.  
  43.